#include <iostream>
#include <Point.h>

int main(int argc, char* argv[])
{
  if (argc != 8)
  {
    std::cout << "Uso: Sean dos puntos A = (Ax, Ay, Az) y B = (Bx, By, Bz), ";
    std::cout << "y un valor u, la sintaxis es:" << std::endl << std::endl;
    std::cout << "lerp u Ax Ay Az Bx By Bz" << std::endl;

    return 1;
  }

  double u = atof(argv[1]);
  double Ax = atof(argv[2]);
  double Ay = atof(argv[3]);
  double Az = atof(argv[4]);
  double Bx = atof(argv[5]);
  double By = atof(argv[6]);
  double Bz = atof(argv[7]);

  Point A(Ax, Ay, Az);
  Point B(Bx, By, Bz);

  Point sol = A.lerp(B, u);

  std::cout << "Solución: " << std::string(sol) << std::endl;

  return 0;
}
